package com.qiche.requestpram;

import com.qiche.aspect.Result;
import com.qiche.enums.ResultEnum;
import org.apache.commons.lang3.StringUtils;

/**
 * @author chendezhi
 * @date 2018/3/7 16:03
 */
public class SendValidateURL {
    private String phone;
    private String code;
    private String name;

    public Result checkParam() {
        if (StringUtils.isEmpty(phone) || StringUtils.isEmpty(code) || StringUtils.isEmpty(name)) {
            return Result.createByResultEnum(ResultEnum.PARAM_ERROR);
        }
        return null;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
